﻿using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using PhotoGallery.Repositories;
using PhotoGallery.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;


namespace PhotoGallery
{
    public class Program
    {
        public static void Main(string[] args)
        {

            BuildWebHost(args)
                  .InitPhotoGalleryRepo(args)
                  .Run();
            
        }

        public static IWebHost BuildWebHost(string[] args)
        {
            return WebHost.CreateDefaultBuilder(args)
                .UseStartup<Startup>()
                .Build();
        }


      
    }
}
